export interface CreateTableRequestData {
    type: string;
    name: string;
    url?: string;
    value: number | null;
    order: string | null;
    isPopular?: boolean;
}

export interface UpdateTableRequestData {
    id: number;
    type: string;
    name: string;
    url?: string;
    value: number | null;
    order: string | null;
    isPopular?: boolean;
}

export interface GetDetailRequestData {
    id: number;
}
export interface GetTableRequestData {
    page: number;
    size: number;
}

export interface GetTableData {
    id: number;
    name: string;
    value: number; // 对应具体的命令/网站/指令主键ID
    order: number; // 显示顺序
    isPopular: boolean; // 对应具体的命令/网站/指令主键ID
    type: string; // 数据类型，对应 网站/指令/插件
    content: string; // 具体的执行内容
}

export type GetTableResponseData = ApiResponseData<{
    content: GetTableData[];
    number: number; // 页码
    size: number; // 页面大小
    totalElements: number; // 总个数
    totalPages: number; // 总页数
}>;

export type GetDetailResponseData = ApiResponseData<{
    action: string;
    content: string;
    id: number;
    isPopular: boolean;
    name: string;
    order: number;
    scriptContent: string | null;
    scriptDelayRunTime: number;
    type: string;
    value: number;
}>;
